package com.sunyur.tailor.channel.service.middle.order;

import com.sunyur.tailor.channel.common.inner.base.MsgResultCode;
import com.sunyur.tailor.channel.common.middle.base.ChannelResult;

/**
 * @Author pengbing
 * @Description 订单服务
 * @Date 19:15 2021/9/6
 * @Param
 * @return
 **/
public interface MiddleOrderService {

    /**
     * 同步订单到外部系统
     */
    ChannelResult auditSubmit(MsgResultCode msgResultCode) throws Exception;

    /**
     * 订单失效同步外部系统
     */
    ChannelResult invalid(MsgResultCode msgResultCode) throws Exception;

    /**
     * 订单取消同步外部系统
     */
    ChannelResult cancel(MsgResultCode msgResultCode) throws Exception;

    /**
     * 订单确认同步外部系统
     */
    ChannelResult confirm(MsgResultCode msgResultCode) throws Exception;

}
